<?php
	session_start();
	include_once("connect.php");
	include_once("achievement_model.php");
	mysql_select_db("progin_171_13509047",$con);
	
	// tambain achievementnya
	$am = new Achievement_Model();
	$am->addAchievementToUser($_SESSION["userid"], 7);
	
	
	// tampilin gambar telor
	echo "<h1 align='center'>You got Arie! Here's a Gag-Nesha golden egg for you<br />";
	echo "<img src='easter-egg.jpg' />";
	echo "</h1>";
	
	// kasi link ke profilenya
	if(isset($_SESSION["userid"])) {
		echo "<a href='profile.php?id=$_SESSION[userid]' style='text-decoration:none'><h1 align='center'>This will count to your achievement</h></a>";
	}	
?>